package com.mao.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mao.entity.Blog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Author: @Hu_Chao
 * @since 2021-08-19
 */
public interface BlogMapper extends BaseMapper<Blog> {

    /**
     * 查询博客
     * @return
     */
    Blog getBlogById();

    /**
     * 新分页
     * @param page
     * @param
     * @return
     */
    IPage<Blog> getBlogByPage(Page<Blog> page,Blog blog);
}
